$(document).ready(function(){
    var headerHeight = $("#header").height();
    var footerHeight = $("#footer").height();
    var containerHeight = document.body.clientHeight - headerHeight - footerHeight - 4;
    $("div.swiper-container").css("height",containerHeight);
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        spaceBetween: 30
    });
});